package com.mall.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @description: 支付视图对象
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/25 19:58
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "支付视图对象")
public class PaymentVO {
    @Schema(description = "支付id")
    private Long id;
    @Schema(description = "订单id")
    private Long orderId;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "支付金额")
    private Double amount;
    @Schema(description = "支付方式")
    private Integer paymentMethod;
    @Schema(description = "支付状态")
    private Integer status;
    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
}
